package com.kuaidao.sys.mapper.user;

import java.util.List;

import java.util.Map;

import com.kuaidao.common.entity.IdsEntity;
import com.kuaidao.common.mapper.IBaseCRUD;
import com.kuaidao.sys.dto.dictionary.DictionaryItemReqDTO;
import com.kuaidao.sys.dto.dictionary.DictionaryItemResDTO;
import com.kuaidao.sys.dto.dictionary.DictionaryReqDTO;
import com.kuaidao.sys.dto.dictionary.DictionaryResDTO;
import com.kuaidao.sys.entity.user.Dictionary;
import com.kuaidao.sys.entity.user.DictionaryEdition;
import org.apache.ibatis.annotations.Param;


/**
 *
 * @Author 91228
 * @since 1.0.0
 */

public interface DictionaryEditionMapper  extends IBaseCRUD<DictionaryEdition, Long> {

	
/**
  	 * 新增
 	 * @param:dictionaryEdition


	 */
	@Override 
	boolean insert(DictionaryEdition entity);

	
/**
  	 * 更新
 	 * @param:dictionaryEdition


	 */
	@Override 
	boolean update(DictionaryEdition entity);

	/**
	 * 根据条件更新
	 * @param dictionary
	 * @return
	 */
	boolean updateDictionaryEditionByCode(Dictionary dictionary);
	
/**
  	 * 删除（根据主键ID删除
 	 * @param:PrimaryKey


	 */
	@Override 
	boolean deleteByPrimaryKey(Long primaryKey);

	
/**
  	 * 批量删除
 	 * @param:keys


	 */
	@Override 
	 boolean deleteBatchByPrimaryKeyList(List<Long> keys);

	boolean deleteDictionaryEditionById(IdsEntity idsEntity);
	
/**
  	 * 根据主键查询
 	 * @param:PrimaryKey


	 */
	@Override 
	DictionaryEdition findByPrimaryKey(Long primaryKey);

	
/**
  	 * 按条件查询
 	 * @param:paramMap


	 */
	@Override 
	List<DictionaryEdition> findEntityListByParams(Map<String, Object> paramMap);

	/**
	 * 根据名字模糊分页查询
	 * @param dictionaryItemReqDTO
	 * @return
	 */
	List<DictionaryItemResDTO> findDictionaryItemsByPage(DictionaryItemReqDTO dictionaryItemReqDTO);
}